/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 发票邮寄查询 (DLR)

// 查询	/invoiceRelevant/selectRegistration
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/dlr/queryList`, params)
// 轨迹查询 postOffice/getWaybillTrackEMS?data=1126531180784
export const billTrackEMS = (courierNo) => axios.get(`${SERVER.DATACENTER}/postOffice/getWaybillTrackEMS?data=${courierNo}`)

//  导出	/invoiceRelevant/dlr/export
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/dlr/export`, params, {
  responseType: 'blob'
});

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
